#!/bin/bash
yum install -y wget
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
yum install yum-plugin-fastestmirror
yum repolist
#vim /etc/yum.repos.d/CentOS-Base.repo
yum update
yum clean all 
yum makecache
yum update